package com.mofeng.myshop.domain.po;


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 图片相关
 * </p>
 *
 * @author MoFeng
 * @since 2024-04-17
 */
@Data
@Accessors(chain = true)
@TableName("tb_images")
@Schema(name = "Images对象", description = "图片相关")
public class Images implements Serializable {
    @TableId(value = "id", type = IdType.NONE)
    protected Long id;

    @Schema(description = "名称")
    protected String name;

    @Schema(description = "备注")
    protected String remarks = "无";

    @Schema(description = "描述")
    protected String description = "";

    @Schema(description = "排序索引")
    protected Integer orderIndex;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    protected Date createTime;

    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    protected Date updateTime;

    @Schema(description = "图片物理机路径")
    private String path;

    @Schema(description = "内容类型")
    private String contentType;

    @Schema(description = "图片前端URL")
    private String url;

    @Schema(description = "源")
    private String original;

    @Schema(description = "MD5")
    private String md5;

    @Schema(description = "user_id")
    private Long userId;


}
